import React, {Component} from 'react';
import {BrowserRouter as Router , Redirect,Route,Switch} from 'react-router-dom'
import Index from "../pages/home";
import Login from "../pages/login/login";

class Routers extends Component {
    render() {
        return (
            <Router>
                <Switch>
                    <Route path="/index"  component={Index}></Route>
                    <Route path="/login" component={Login}></Route>
                </Switch>
            </Router>
        );
    }
}

export default Routers;